exe=sp.exe
CXX=g++
CXXDEF=
IDIR=-I /opt/include/ -I/opt/boost_1_56_0/
#IDIR=-I /opt/include/ -I/opt/boost_1_56_0/
#LDIR=-L /opt/boost_1_56_0/stage/lib/ -L/opt/lib/
#CXXFLAGS= -O3 #-Wall
CXXFLAGS= -std=c++11 -Wno-deprecated-declarations  -O3 -fopenmp
#CXXFLAGS=-g 
GSL_LIBS=-lgsl -lgslcblas
#BOOST_LIBS=-lboost_serialization -lboost_timer -lboost_system

DEPS=help.h\
base.h\
orbital.h\
twobodystate.h\
system_ho.h\
system_k.h\
system_m.h\
hfsolver_ho.h\
hfsolver_m.h\
hfsolver_k.h\
system_hf.h\
system_m_hf.h\
mbpt.h\
rpa.h\
ccd.h\
adc2.h\
potential.h\
spsolver_k.h\
spsolver.h\
system_ws.h\
system_gammow.h\
sm.h

#main_be_radius.o 
#main_sp.o 
OBJ=main_sp.o help.o orbital.o twobodystate.o system_ho.o system_m.o system_k.o hfsolver_ho.o hfsolver_m.o hfsolver_k.o system_hf.o system_m_hf.o ./vrenorm/*.o \
     mbpt.o rpa.o ccd.o adc2.o potential.o spsolver_k.o spsolver.o system_ws.o system_gammow.o sm.o

%.o: %.cpp $(DEPS)
	$(CXX) ${CXXDEF} -c -o $@ $< $(CXXFLAGS) $(IDIR) $(LDIR)
$(exe):$(OBJ)
	$(CXX)  -o $@ $^ $(CXXFLAGS) $(GSL_LIBS) $(BOOST_LIBS) $(IDIR) $(LDIR) -lgfortran

.PHONY: clean

clean:
	rm -f *.o  $(exe)
